<template>
  <div class="home">
    <el-select v-model="value" @change="changeLoach" placeholder="请选择">
      <el-option
        v-for="item in options"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      >
      </el-option>
    </el-select>
    <h3>
      {{ $t("el.colorpicker.clear") }}
    </h3>
  </div>
</template>

<script>
export default {
      data() {
      return {
        options: [{
          value: 'zh',
          label: '汉语'
        }, {
          value: 'en',
          label: '英语'
        }, {
          value: 'tg',
          label: '泰语'
        }],
        value: 'zh'
      }
    },
  created() {
  },
  methods: {
    changeLoach() {
      this.$i18n.locale = this.value
    }
  }
};
</script>


<style>
</style>
